home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sun4c / archive / printer_.z / printer_ / slib / printer_hack
Text File  |  1994-09-26  |  244b  |  8 lines

  1. #
  2. # printer_hack -- Install this in .cshrc  
  3. #   (example of using xmenu)
  4. #
  5.  
  6. set printers=`egrep '^[^        #].*\|' /etc/printcap | sed 's/|.*$//'`
  7. alias setprint 'setenv PRINTER `xmenu -geometry +0+0 -heading "Choose a printer: " $printers`'
  8.